package com.imchen.cms.cmsweb.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;

/**
 * @author imchen
 * @create: 2019-01-12 14:14
 **/
public interface BaseController<T> {

    HashMap add(@RequestBody T t) throws Exception;
    int remove(@PathVariable int id);
    int delete(@PathVariable int id);
    int update(@RequestBody T t);
    HashMap<String,Object> find(@PathVariable int id);
}